package com.xxbb.chapter_6.dome4;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Program {
    public static void main(String[] args) {
        Pattern pattern= Pattern.compile("^Java.*");
        Matcher matcher= pattern.matcher("Java是传说");
        System.out.println(matcher.matches());

    }
}
